<?php /* Smarty version Smarty-3.1.11, created on 2013-08-27 10:36:58
         compiled from "..\templates\canbo\xemlog.tpl" */ ?>
<?php /*%%SmartyHeaderCode:22310521c1eda69e4e4-11505035%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'be49ac8a7640255239a714ae5b9e77c6b86f764b' => 
    array (
      0 => '..\\templates\\canbo\\xemlog.tpl',
      1 => 1377073072,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '22310521c1eda69e4e4-11505035',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'stringten' => 0,
    'locdl' => 0,
    'ds_hien' => 0,
    'sl' => 0,
    'SL_hien' => 0,
    'hientai' => 0,
    'dslog' => 0,
    'j' => 0,
    'item' => 0,
    'sotrang' => 0,
    'i' => 0,
    'url' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_521c1eda7c4ad3_53747703',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_521c1eda7c4ad3_53747703')) {function content_521c1eda7c4ad3_53747703($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\tuyensinh\\lib\\smarty\\plugins\\modifier.date_format.php';
?><script>
  $(function() {
    var availableTags = [<?php echo $_smarty_tpl->tpl_vars['stringten']->value;?>
 ];
    $( "#tencb").autocomplete({
      source: availableTags
    });
  });
</script>
<script type="text/javascript" src="../php/js/canbo.js"></script>
<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>Nhật ký login của hệ thống</h3>
	</div> <!-- End .content-box-header -->
	
	<div class="content-box-content">
<!----------------------------------------------------------------- NỘI DUNG TRANG------------------------------------------------------------------------>

    <form action="" method="POST" id="dssv" onsubmit="return ktngay();">
        <table>
            <tr>
                <td>
                &nbsp;            
                Tên cán bộ:&nbsp;
                <input type="text" class="text-input" name="tencb" id="tencb" value="<?php echo $_smarty_tpl->tpl_vars['locdl']->value['tencb'];?>
" />
                &nbsp;
                Hành động:&nbsp;
                <input type="text" class="text-input" name="hanhdong" id="hanhdong" value="<?php echo $_smarty_tpl->tpl_vars['locdl']->value['hanhdong'];?>
" />
                &nbsp;
                Ngày bắt đầu:&nbsp;
                <input type="text" class="medium-input" name="thoigian" id="thoigian" value="<?php echo $_smarty_tpl->tpl_vars['locdl']->value['thoigian'];?>
" /> : 
                <input type="text" class="small-input" name="gio" id="gio" value="<?php echo $_smarty_tpl->tpl_vars['locdl']->value['gio'];?>
" /> giờ 
                <input type="text" class="small-input" name="phut" id="phut" value="<?php echo $_smarty_tpl->tpl_vars['locdl']->value['phut'];?>
" /> phút
                &nbsp;          
                <input type="submit" class="button" name="loc" id="loc" value="Lọc DL" />&nbsp; 
                Hiện: &nbsp;                
                    <select name="SL_hien" id="SL_hien">
                        <?php  $_smarty_tpl->tpl_vars['sl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sl']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ds_hien']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sl']->key => $_smarty_tpl->tpl_vars['sl']->value){
$_smarty_tpl->tpl_vars['sl']->_loop = true;
?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['sl']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['sl']->value==$_smarty_tpl->tpl_vars['locdl']->value['SL_hien']){?> selected=""<?php }?>><?php echo $_smarty_tpl->tpl_vars['sl']->value;?>
</option>
                        <?php } ?>                    
                    </select>
                &nbsp;
                </td>
            </tr>
            <tr><td><label id="loi"></label></td></tr>
        </table>
 <!------------------------------------------------------------------------------------------------------------------------------------------------------->       
        <table>
            <tr class="linebottom">
            <?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->tpl_vars['SL_hien']->value*($_smarty_tpl->tpl_vars['hientai']->value-1), null, 0);?>
                <td>STT</td>
                <td>Thời gian</td>
                <td>Cán bộ</td>
                <td>Hành động</td>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dslog']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                <tr class="linebottom">
                    <td class="td-30"><?php echo $_smarty_tpl->tpl_vars['j']->value++;?>
</td>
                    <td class="td-120"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['thoigian'],'H:i:s d/m/Y');?>
</td>
                    <td class="td-150"><?php echo $_smarty_tpl->tpl_vars['item']->value['hoten_cb'];?>
</td>
                    <td class="td-750"><?php echo $_smarty_tpl->tpl_vars['item']->value['hanhdong'];?>
</td>
                </tr>
            <?php } ?>
        <!---------------------------------------------------------phân trang--------------------------------------------------------->
        <?php if ($_smarty_tpl->tpl_vars['sotrang']->value>1){?>    
            <tr>
                <td colspan="11">
                    <?php  $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->value = 1;
  if ($_smarty_tpl->tpl_vars['i']->value<=$_smarty_tpl->tpl_vars['sotrang']->value){ for ($_foo=true;$_smarty_tpl->tpl_vars['i']->value<=$_smarty_tpl->tpl_vars['sotrang']->value; $_smarty_tpl->tpl_vars['i']->value++){
?>
                        <?php if ($_smarty_tpl->tpl_vars['i']->value!=$_smarty_tpl->tpl_vars['hientai']->value){?>
                            <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&batdau=<?php echo $_smarty_tpl->tpl_vars['SL_hien']->value*($_smarty_tpl->tpl_vars['i']->value-1);?>
">|<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|</a>
                        <?php }else{ ?>
                            <font color=red>|<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|</font>
                        <?php }?>    
                    <?php }} ?>
                </td>
            </tr>
        <?php }?>    
        </table>
    </form>
<!-----------------------------------------------------------KẾT THÚC NỘI DUNG TRANG------------------------------------------------------------------------>
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box --><?php }} ?>